package com.example.iotmanagerment26.domain;

import org.springframework.stereotype.Component;

@Component
public class Device {
    int id,userCount;
    String name,type,description,createTime;

    public Device() {

    }

    public Device(int id, int userCount, String name, String type, String description, String createTime) {
        this.id = id;
        this.userCount = userCount;
        this.name = name;
        this.type = type;
        this.description = description;
        this.createTime = createTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserCount() {
        return userCount;
    }

    public void setUserCount(int userCount) {
        this.userCount = userCount;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Device{" +
                "id=" + id +
                ", userCount=" + userCount +
                ", name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", description='" + description + '\'' +
                ", createTime='" + createTime + '\'' +
                '}';
    }
}
